<template>
  <div class="flex justify-center items-center h-screen">
    <div>
      <h1 class="text-3xl font-bold">这是关于页！</h1>
      <el-button @click="to" class="mt-4">前往</el-button>
      <el-button @click="dialogVisible = true" class="mt-4">弹框</el-button>
    </div>
  </div>
  
  <el-dialog
    v-model="dialogVisible"
    title="Tips"
    width="500"
  > 
    <div class="flex">
      <ul class="flex flex-row justify-center items-center">
        <li class="bg-red-500 w-10 h-10 rounded-full mr-2 text-center">1</li>
        <li class="bg-blue-500 w-10 h-10 rounded-full mr-2 text-center">2</li>
        <li class="bg-green-500 w-10 h-10 rounded-full mr-2 text-center">3</li>
        <li class="bg-yellow-500 w-10 h-10 rounded-full mr-2 text-center">4</li>
      </ul>
    </div>
    <template #footer>
      <div class="dialog-footer">
       
        <el-button @click="dialogVisible = false">Cancel</el-button>
        <el-button type="primary" @click="dialogVisible = false">
          Confirm
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>
<script setup lang="ts">
import {ref} from 'vue';
import { router } from '@/router';

let dialogVisible = ref<bool>(false)

function to() {
  router.push('/')
}

function getArticleList(){
  dialogVisible = true
  console.log("弹框了",dialogVisible);
  
}

</script>
